package morphage.engine;

public class HarrisDetector_CornerResponseLayer extends OperationLayer
{
  private double m_weightCoef;
  private double m_2rho;
  
  public String getName() { return "Harris detector"; }
  public void computeWeightCoef( double rho )
  {
    m_2rho        = 2. * rho;
    m_weightCoef  = 1. / (m_2rho * Math.PI );
  }
  private double weight( float x, float y )
  {
    double tmp = -(x*x + y*y) / m_2rho;
    return m_weightCoef * Math.exp(tmp);
  }
}
